home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1998 January: Mac OS SDK / Dev.CD Jan 98 SDK1.toast / Development Kits (Disc 1) / Interfaces&Libraries / Universal / Interfaces / AIncludes / Fonts.a < prev    next >
Encoding:
Text File  |  1997-08-12  |  15.6 KB  |  531 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        Fonts.a
  3. ;
  4. ;    Contains:    Font Manager Interfaces.
  5. ;
  6. ;    Version:    Technology:    MacOS
  7. ;                Release:    Universal Interfaces 3.0.1
  8. ;
  9. ;    Copyright:    © 1985-1997 by Apple Computer, Inc., all rights reserved
  10. ;
  11. ;    Bugs?:        Please include the the file and version information (from above) with
  12. ;                the problem description.  Developers belonging to one of the Apple
  13. ;                developer programs can submit bug reports to:
  14. ;
  15. ;                    devsupport@apple.com
  16. ;
  17. ;
  18.     IF &TYPE('__FONTS__') = 'UNDEFINED' THEN
  19. __FONTS__ SET 1
  20.  
  21.     IF &TYPE('__TYPES__') = 'UNDEFINED' THEN
  22.     include 'Types.a'
  23.     ENDIF
  24.     IF &TYPE('__QUICKDRAW__') = 'UNDEFINED' THEN
  25.     include 'Quickdraw.a'
  26.     ENDIF
  27.  
  28.  
  29. systemFont                        EQU        0
  30. applFont                        EQU        1
  31.  
  32. ;    The following font constants are deprecated.  
  33. ;    Please use GetFNum() to look up the font ID by name.
  34. ;
  35.  
  36.  
  37. kFontIDNewYork                    EQU        2
  38. kFontIDGeneva                    EQU        3
  39. kFontIDMonaco                    EQU        4
  40. kFontIDVenice                    EQU        5
  41. kFontIDLondon                    EQU        6
  42. kFontIDAthens                    EQU        7
  43. kFontIDSanFrancisco                EQU        8
  44. kFontIDToronto                    EQU        9
  45. kFontIDCairo                    EQU        11
  46. kFontIDLosAngeles                EQU        12
  47. kFontIDTimes                    EQU        20
  48. kFontIDHelvetica                EQU        21
  49. kFontIDCourier                    EQU        22
  50. kFontIDSymbol                    EQU        23
  51. kFontIDMobile                    EQU        24
  52.     IF OLDROUTINENAMES THEN
  53.  
  54. newYork                            EQU        2
  55. geneva                            EQU        3
  56. monaco                            EQU        4
  57. venice                            EQU        5
  58. london                            EQU        6
  59. athens                            EQU        7
  60. sanFran                            EQU        8
  61. toronto                            EQU        9
  62. cairo                            EQU        11
  63. losAngeles                        EQU        12
  64. times                            EQU        20
  65. helvetica                        EQU        21
  66. courier                            EQU        22
  67. symbol                            EQU        23
  68. mobile                            EQU        24
  69.     ENDIF    ; OLDROUTINENAMES
  70.  
  71. commandMark                        EQU        17
  72. checkMark                        EQU        18
  73. diamondMark                        EQU        19
  74. appleMark                        EQU        20
  75.  
  76. propFont                        EQU        36864
  77. prpFntH                            EQU        36865
  78. prpFntW                            EQU        36866
  79. prpFntHW                        EQU        36867
  80. fixedFont                        EQU        45056
  81. fxdFntH                            EQU        45057
  82. fxdFntW                            EQU        45058
  83. fxdFntHW                        EQU        45059
  84. fontWid                            EQU        44208
  85. FMInput                    RECORD 0
  86. family                     ds.w    1                ; offset: $0 (0)
  87. size                     ds.w    1                ; offset: $2 (2)
  88. face                     ds.b    1                ; offset: $4 (4)
  89. needBits                 ds.b    1                ; offset: $5 (5)
  90. device                     ds.w    1                ; offset: $6 (6)
  91. numer                     ds        Point            ; offset: $8 (8)
  92. denom                     ds        Point            ; offset: $C (12)
  93. sizeof                     EQU *                    ; size:   $10 (16)
  94.                         ENDR
  95. FMOutput                RECORD 0
  96. errNum                     ds.w    1                ; offset: $0 (0)
  97. fontHandle                 ds.l    1                ; offset: $2 (2)        ;  the previous "privateFontResult" was a mistake! 
  98. boldPixels                 ds.b    1                ; offset: $6 (6)
  99. italicPixels             ds.b    1                ; offset: $7 (7)
  100. ulOffset                 ds.b    1                ; offset: $8 (8)
  101. ulShadow                 ds.b    1                ; offset: $9 (9)
  102. ulThick                     ds.b    1                ; offset: $A (10)
  103. shadowPixels             ds.b    1                ; offset: $B (11)
  104. extra                     ds.b    1                ; offset: $C (12)
  105. ascent                     ds.b    1                ; offset: $D (13)
  106. descent                     ds.b    1                ; offset: $E (14)
  107. widMax                     ds.b    1                ; offset: $F (15)
  108. leading                     ds.b    1                ; offset: $10 (16)
  109. curStyle                 ds.b    1                ; offset: $11 (17)
  110. numer                     ds        Point            ; offset: $12 (18)
  111. denom                     ds        Point            ; offset: $16 (22)
  112. sizeof                     EQU *                    ; size:   $1A (26)
  113.                         ENDR
  114. ; typedef struct FMOutput *                FMOutPtr
  115.  
  116. ; typedef struct FMOutput *                FMOutputPtr
  117.  
  118. FontRec                    RECORD 0
  119. fontType                 ds.w    1                ; offset: $0 (0)        ; font type
  120. firstChar                 ds.w    1                ; offset: $2 (2)        ; ASCII code of first character
  121. lastChar                 ds.w    1                ; offset: $4 (4)        ; ASCII code of last character
  122. widMax                     ds.w    1                ; offset: $6 (6)        ; maximum character width
  123. kernMax                     ds.w    1                ; offset: $8 (8)        ; negative of maximum character kern
  124. nDescent                 ds.w    1                ; offset: $A (10)        ; negative of descent
  125. fRectWidth                 ds.w    1                ; offset: $C (12)        ; width of font rectangle
  126. fRectHeight                 ds.w    1                ; offset: $E (14)        ; height of font rectangle
  127. owTLoc                     ds.w    1                ; offset: $10 (16)        ; offset to offset/width table
  128. ascent                     ds.w    1                ; offset: $12 (18)        ; ascent
  129. descent                     ds.w    1                ; offset: $14 (20)        ; descent
  130. leading                     ds.w    1                ; offset: $16 (22)        ; leading
  131. rowWords                 ds.w    1                ; offset: $18 (24)        ; row width of bit image / 2 
  132. sizeof                     EQU *                    ; size:   $1A (26)
  133.                         ENDR
  134. ; typedef struct FontRec *                FontRecPtr
  135.  
  136. ; typedef FontRecPtr *                    FontRecHdl
  137.  
  138. FMetricRec                RECORD 0
  139. ascent                     ds.l    1                ; offset: $0 (0)        ; base line to top
  140. descent                     ds.l    1                ; offset: $4 (4)        ; base line to bottom
  141. leading                     ds.l    1                ; offset: $8 (8)        ; leading between lines
  142. widMax                     ds.l    1                ; offset: $C (12)        ; maximum character width
  143. wTabHandle                 ds.l    1                ; offset: $10 (16)        ; handle to font width table
  144. sizeof                     EQU *                    ; size:   $14 (20)
  145.                         ENDR
  146.  
  147. ;   typedef struct FMetricRec FMetricRec, *FMetricRecPtr;
  148. ;   typedef FMetricRecPtr *FMetricRecHandle;
  149.  
  150.  
  151. ; typedef struct FMetricRec *            FMetricRecPtr
  152.  
  153. ; typedef FMetricRecPtr *                FMetricRecHandle
  154.  
  155. WidEntry                RECORD 0
  156. widStyle                 ds.w    1                ; offset: $0 (0)        ; style entry applies to
  157. sizeof                     EQU *                    ; size:   $2 (2)
  158.                         ENDR
  159. WidTable                RECORD 0
  160. numWidths                 ds.w    1                ; offset: $0 (0)        ; number of entries - 1
  161. sizeof                     EQU *                    ; size:   $2 (2)
  162.                         ENDR
  163. AsscEntry                RECORD 0
  164. fontSize                 ds.w    1                ; offset: $0 (0)
  165. fontStyle                 ds.w    1                ; offset: $2 (2)
  166. fontID                     ds.w    1                ; offset: $4 (4)        ; font resource ID
  167. sizeof                     EQU *                    ; size:   $6 (6)
  168.                         ENDR
  169. FontAssoc                RECORD 0
  170. numAssoc                 ds.w    1                ; offset: $0 (0)        ; number of entries - 1
  171. sizeof                     EQU *                    ; size:   $2 (2)
  172.                         ENDR
  173. StyleTable                RECORD 0
  174. fontClass                 ds.w    1                ; offset: $0 (0)
  175. offset                     ds.l    1                ; offset: $2 (2)
  176. reserved                 ds.l    1                ; offset: $6 (6)
  177. indexes                     ds.b    48                ; offset: $A (10)
  178. sizeof                     EQU *                    ; size:   $3A (58)
  179.                         ENDR
  180. NameTable                RECORD 0
  181. stringCount                 ds.w    1                ; offset: $0 (0)
  182. baseFontName             ds        Str255            ; offset: $2 (2)
  183. sizeof                     EQU *                    ; size:   $102 (258)
  184.                         ENDR
  185. KernPair                RECORD 0
  186. kernFirst                 ds.b    1                ; offset: $0 (0)        ; 1st character of kerned pair
  187. kernSecond                 ds.b    1                ; offset: $1 (1)        ; 2nd character of kerned pair
  188. kernWidth                 ds.w    1                ; offset: $2 (2)        ; kerning in 1pt fixed format
  189. sizeof                     EQU *                    ; size:   $4 (4)
  190.                         ENDR
  191. KernEntry                RECORD 0
  192. kernStyle                 ds.w    1                ; offset: $0 (0)        ; style the entry applies to
  193. kernLength                 ds.w    1                ; offset: $2 (2)        ; length of this entry
  194. sizeof                     EQU *                    ; size:   $4 (4)
  195.                         ENDR
  196. KernTable                RECORD 0
  197. numKerns                 ds.w    1                ; offset: $0 (0)        ; number of kerning entries
  198. sizeof                     EQU *                    ; size:   $2 (2)
  199.                         ENDR
  200. WidthTable                RECORD 0
  201. tabData                     ds.l    256                ; offset: $0 (0)        ; character widths
  202. tabFont                     ds.l    1                ; offset: $400 (1024)    ; font record used to build table - the previous FontResult was a mistake!
  203. sExtra                     ds.l    1                ; offset: $404 (1028)    ; space extra used for table
  204. style                     ds.l    1                ; offset: $408 (1032)    ; extra due to style
  205. fID                         ds.w    1                ; offset: $40C (1036)    ; font family ID
  206. fSize                     ds.w    1                ; offset: $40E (1038)    ; font size request
  207. face                     ds.w    1                ; offset: $410 (1040)    ; style (face) request
  208. device                     ds.w    1                ; offset: $412 (1042)    ; device requested
  209. inNumer                     ds        Point            ; offset: $414 (1044)    ; scale factors requested
  210. inDenom                     ds        Point            ; offset: $418 (1048)    ; scale factors requested
  211. aFID                     ds.w    1                ; offset: $41C (1052)    ; actual font family ID for table
  212. fHand                     ds.l    1                ; offset: $41E (1054)    ; family record used to build up table
  213. usedFam                     ds.b    1                ; offset: $422 (1058)    ; used fixed point family widths
  214. aFace                     ds.b    1                ; offset: $423 (1059)    ; actual face produced
  215. vOutput                     ds.w    1                ; offset: $424 (1060)    ; vertical scale output value
  216. hOutput                     ds.w    1                ; offset: $426 (1062)    ; horizontal scale output value
  217. vFactor                     ds.w    1                ; offset: $428 (1064)    ; vertical scale output value
  218. hFactor                     ds.w    1                ; offset: $42A (1066)    ; horizontal scale output value
  219. aSize                     ds.w    1                ; offset: $42C (1068)    ; actual size of actual font used
  220. tabSize                     ds.w    1                ; offset: $42E (1070)    ; total size of table
  221. sizeof                     EQU *                    ; size:   $430 (1072)
  222.                         ENDR
  223. ; typedef struct WidthTable *            WidthTablePtr
  224.  
  225. ; typedef WidthTablePtr *                WidthTableHdl
  226.  
  227.  
  228. FamRec                    RECORD 0
  229. ffFlags                     ds.w    1                ; offset: $0 (0)        ; flags for family
  230. ffFamID                     ds.w    1                ; offset: $2 (2)        ; family ID number
  231. ffFirstChar                 ds.w    1                ; offset: $4 (4)        ; ASCII code of 1st character
  232. ffLastChar                 ds.w    1                ; offset: $6 (6)        ; ASCII code of last character
  233. ffAscent                 ds.w    1                ; offset: $8 (8)        ; maximum ascent for 1pt font
  234. ffDescent                 ds.w    1                ; offset: $A (10)        ; maximum descent for 1pt font
  235. ffLeading                 ds.w    1                ; offset: $C (12)        ; maximum leading for 1pt font
  236. ffWidMax                 ds.w    1                ; offset: $E (14)        ; maximum widMax for 1pt font
  237. ffWTabOff                 ds.l    1                ; offset: $10 (16)        ; offset to width table
  238. ffKernOff                 ds.l    1                ; offset: $14 (20)        ; offset to kerning table
  239. ffStylOff                 ds.l    1                ; offset: $18 (24)        ; offset to style mapping table
  240. ffProperty                 ds.w    9                ; offset: $1C (28)        ; style property info
  241. ffIntl                     ds.w    2                ; offset: $2E (46)        ; for international use
  242. ffVersion                 ds.w    1                ; offset: $32 (50)        ; version number
  243. sizeof                     EQU *                    ; size:   $34 (52)
  244.                         ENDR
  245. ; typedef SInt16                         FontPointSize
  246.  
  247. ; typedef SInt16                         FontFamilyID
  248.  
  249. ;
  250. ; pascal void InitFonts(void )
  251. ;
  252.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  253.         _InitFonts:    OPWORD    $A8FE
  254.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  255.         IMPORT_CFM_FUNCTION InitFonts
  256.     ENDIF
  257.  
  258. ;
  259. ; pascal void GetFontName(short familyID, Str255 name)
  260. ;
  261.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  262.         _GetFontName:    OPWORD    $A8FF
  263.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  264.         IMPORT_CFM_FUNCTION GetFontName
  265.     ENDIF
  266.  
  267. ;
  268. ; pascal void GetFNum(ConstStr255Param name, short *familyID)
  269. ;
  270.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  271.         _GetFNum:    OPWORD    $A900
  272.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  273.         IMPORT_CFM_FUNCTION GetFNum
  274.     ENDIF
  275.  
  276. ;
  277. ; pascal Boolean RealFont(short fontNum, short size)
  278. ;
  279.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  280.         _RealFont:    OPWORD    $A902
  281.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  282.         IMPORT_CFM_FUNCTION RealFont
  283.     ENDIF
  284.  
  285. ;
  286. ; pascal void SetFontLock(Boolean lockFlag)
  287. ;
  288.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  289.         _SetFontLock:    OPWORD    $A903
  290.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  291.         IMPORT_CFM_FUNCTION SetFontLock
  292.     ENDIF
  293.  
  294. ;
  295. ; pascal FMOutPtr FMSwapFont(const FMInput *inRec)
  296. ;
  297.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  298.         _FMSwapFont:    OPWORD    $A901
  299.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  300.         IMPORT_CFM_FUNCTION FMSwapFont
  301.     ENDIF
  302.  
  303. ;
  304. ; pascal void SetFScaleDisable(Boolean fscaleDisable)
  305. ;
  306.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  307.         _SetFScaleDisable:    OPWORD    $A834
  308.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  309.         IMPORT_CFM_FUNCTION SetFScaleDisable
  310.     ENDIF
  311.  
  312. ;
  313. ; pascal void FontMetrics(FMetricRecPtr theMetrics)
  314. ;
  315.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  316.         _FontMetrics:    OPWORD    $A835
  317.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  318.         IMPORT_CFM_FUNCTION FontMetrics
  319.     ENDIF
  320.  
  321. ;
  322. ; pascal void SetFractEnable(Boolean fractEnable)
  323. ;
  324.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  325.         _SetFractEnable:    OPWORD    $A814
  326.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  327.         IMPORT_CFM_FUNCTION SetFractEnable
  328.     ENDIF
  329.  
  330. ;
  331. ; pascal short GetDefFontSize(void )
  332. ;
  333.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  334.         Macro
  335.         _GetDefFontSize
  336.             dc.w                $3EB8
  337.             dc.w                $0BA8
  338.             dc.w                $6604
  339.             dc.w                $3EBC
  340.             dc.w                $000C
  341.         EndM
  342.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  343.         IMPORT_CFM_FUNCTION GetDefFontSize
  344.     ENDIF
  345.  
  346. ;
  347. ; pascal Boolean IsOutline(Point numer, Point denom)
  348. ;
  349.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  350.         Macro
  351.         _IsOutline
  352.             moveq               #0,D0
  353.             dc.w                $A854
  354.         EndM
  355.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  356.         IMPORT_CFM_FUNCTION IsOutline
  357.     ENDIF
  358.  
  359. ;
  360. ; pascal void SetOutlinePreferred(Boolean outlinePreferred)
  361. ;
  362.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  363.         Macro
  364.         _SetOutlinePreferred
  365.             moveq               #1,D0
  366.             dc.w                $A854
  367.         EndM
  368.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  369.         IMPORT_CFM_FUNCTION SetOutlinePreferred
  370.     ENDIF
  371.  
  372. ;
  373. ; pascal Boolean GetOutlinePreferred(void )
  374. ;
  375.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  376.         Macro
  377.         _GetOutlinePreferred
  378.             moveq               #9,D0
  379.             dc.w                $A854
  380.         EndM
  381.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  382.         IMPORT_CFM_FUNCTION GetOutlinePreferred
  383.     ENDIF
  384.  
  385. ;
  386. ; pascal OSErr OutlineMetrics(short byteCount, const void *textPtr, Point numer, Point denom, short *yMax, short *yMin, FixedPtr awArray, FixedPtr lsbArray, RectPtr boundsArray)
  387. ;
  388.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  389.         Macro
  390.         _OutlineMetrics
  391.             moveq               #8,D0
  392.             dc.w                $A854
  393.         EndM
  394.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  395.         IMPORT_CFM_FUNCTION OutlineMetrics
  396.     ENDIF
  397.  
  398. ;
  399. ; pascal void SetPreserveGlyph(Boolean preserveGlyph)
  400. ;
  401.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  402.         Macro
  403.         _SetPreserveGlyph
  404.             moveq               #10,D0
  405.             dc.w                $A854
  406.         EndM
  407.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  408.         IMPORT_CFM_FUNCTION SetPreserveGlyph
  409.     ENDIF
  410.  
  411. ;
  412. ; pascal Boolean GetPreserveGlyph(void )
  413. ;
  414.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  415.         Macro
  416.         _GetPreserveGlyph
  417.             moveq               #11,D0
  418.             dc.w                $A854
  419.         EndM
  420.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  421.         IMPORT_CFM_FUNCTION GetPreserveGlyph
  422.     ENDIF
  423.  
  424. ;
  425. ; pascal OSErr FlushFonts(void )
  426. ;
  427.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  428.         Macro
  429.         _FlushFonts
  430.             moveq               #12,D0
  431.             dc.w                $A854
  432.         EndM
  433.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  434.         IMPORT_CFM_FUNCTION FlushFonts
  435.     ENDIF
  436.  
  437. ;
  438. ; pascal short GetSysFont(void)
  439. ;
  440.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  441.         Macro
  442.         _GetSysFont           &dest=(sp)
  443.             move.w            $0BA6,&dest
  444.         EndM
  445.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  446.         IMPORT_CFM_FUNCTION GetSysFont
  447.     ENDIF
  448.  
  449. ;
  450. ; pascal short GetAppFont(void)
  451. ;
  452.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  453.         Macro
  454.         _GetAppFont           &dest=(sp)
  455.             move.w            $0984,&dest
  456.         EndM
  457.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  458.         IMPORT_CFM_FUNCTION GetAppFont
  459.     ENDIF
  460.  
  461.  
  462. ;
  463. ; pascal void AntiTextSetApplicationAware(Boolean aware)
  464. ;
  465.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  466.         Macro
  467.         _AntiTextSetApplicationAware
  468.             moveq               #36,D0
  469.             dc.w                $A854
  470.         EndM
  471.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  472.         IMPORT_CFM_FUNCTION AntiTextSetApplicationAware
  473.     ENDIF
  474.  
  475. ;
  476. ; pascal Boolean AntiTextGetApplicationAware(void )
  477. ;
  478.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  479.         Macro
  480.         _AntiTextGetApplicationAware
  481.             moveq               #37,D0
  482.             dc.w                $A854
  483.         EndM
  484.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  485.         IMPORT_CFM_FUNCTION AntiTextGetApplicationAware
  486.     ENDIF
  487.  
  488. ;
  489. ; pascal void AntiTextSetEnabled(Boolean enabled)
  490. ;
  491.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  492.         Macro
  493.         _AntiTextSetEnabled
  494.             moveq               #38,D0
  495.             dc.w                $A854
  496.         EndM
  497.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  498.         IMPORT_CFM_FUNCTION AntiTextSetEnabled
  499.     ENDIF
  500.  
  501. ;
  502. ; pascal Boolean AntiTextGetEnabled(void )
  503. ;
  504.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  505.         Macro
  506.         _AntiTextGetEnabled
  507.             moveq               #39,D0
  508.             dc.w                $A854
  509.         EndM
  510.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  511.         IMPORT_CFM_FUNCTION AntiTextGetEnabled
  512.     ENDIF
  513.  
  514. ;
  515. ; pascal Boolean AntiTextIsAntiAliased(Point numer, Point denom)
  516. ;
  517.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  518.         Macro
  519.         _AntiTextIsAntiAliased
  520.             moveq               #40,D0
  521.             dc.w                $A854
  522.         EndM
  523.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  524.         IMPORT_CFM_FUNCTION AntiTextIsAntiAliased
  525.     ENDIF
  526.  
  527.  
  528.     ENDIF ; __FONTS__ 
  529.  
  530.